Where
-Infinity
0

Vendor Risk Score

See how ppc64-diag project compares to other vendors in security performance

View Risk Score →
Severity
2.1
AV:L/AC:L/Au:N/C:P/I:N/A:N

ppc64-diag 2.6.1 uses 0775 permissions for /tmp/diagSEsnap and does not properly restrict permissions for /tmp/diagSEsnap/snapH.tar.gz, which allows local users to obtain sensitive information by reading files in this archive, as demonstrated by /var/log/messages and /etc/yaboot.conf.

First published (updated )
Severity
4.4
Race Condition
AV:L/AC:M/Au:N/C:P/I:P/A:P

As noted in the SUSE bug report [1], numerous /tmp race conditions exist in ppc64-diag, in particular:

rtaserrd/diagsupport.c:233: char command[]="/usr/bin/find /proc/device-tree -name status -print > /tmp/getdtfiles"; rtaserrd/diagsupport.c:241: fp1 = fopen("/tmp/getdtfiles", "r"); rtaserrd/prrnhotplug:8:TMPFILE=mktemp -p /tmp scripts/ppc64diagmkrsrc:126:mkdir "/tmp/diagSEsnap", 0775; scripts/ppc64diagmkrsrc:127:$generaleedfile = "/tmp/diagSEsnap/snapH.tar.gz";

In the case of rtaserrd/prrnhotplug, mktemp is used but is assumed to have succeeded; there is no check for the return value.

mktemp should probably be used properly in all of these. I don't know if the data in /tmp/diagSEsnap is sensitive or not, but if it is, the permissions on that directory should probably be tightened up.

No CVE(s) have been assigned to these issues as of yet.

[1] https://bugzilla.novell.com/showbug.cgi?id=882667

1 / 2
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203